Adwaita: popover style fixes
authorLapo Calamandrei <calamandrei@gmail.com>
Tue, 12 Jan 2016 00:03:47 +0000 (01:03 +0100)
committerLapo Calamandrei <calamandrei@gmail.com>
Tue, 12 Jan 2016 00:03:47 +0000 (01:03 +0100)
gtk/theme/Adwaita/_colors.scss
gtk/theme/Adwaita/_common.scss
gtk/theme/Adwaita/gtk-contained-dark.css
gtk/theme/Adwaita/gtk-contained.css

index 9ad5ac0eec5c39351c19625911d3ab5819db4c71..c4c69fef6467444bb89b20090cb24e19fe7b14cb 100644 (file)
@@ -34,6 +34,7 @@ $osd_insensitive_fg_color: mix($osd_fg_color, opacify($osd_bg_color, 1), 50%);
 $osd_borders_color: transparentize(black, 0.3);
 
 $sidebar_bg_color: mix($bg_color, $base_color, 50%);
+$base_hover_color: transparentize($fg_color, 0.95);
 
 $tooltip_borders_color: transparentize(white, 0.9);
 
index 16929e5642cd42d23a9a613071bebd983a59c009..8b42ddbc271ee96e4d6dea6d7ca8e46ddd05c94d 100644 (file)
@@ -791,7 +791,7 @@ modelbutton.flat,
   outline-offset: -2px;
 
   @extend %undecorated_button;
-  &:hover { background-color: mix($fg_color, $bg_color, 10%); }
+  &:hover { background-color: $base_hover_color; } // FIXME
 
   &:selected { @extend %selected_items; }
 
@@ -903,7 +903,7 @@ spinbutton {
 
       &:hover {
         color: $fg_color;
-        background-color: transparentize($fg_color, 0.95);
+        background-color: $base_hover_color;
       }
 
       &:disabled { color: transparentize($insensitive_fg_color, 0.7); }
@@ -1752,12 +1752,6 @@ popover.background {
     background-color: transparent;
   }
 
-  button.flat,
-  button.flat:hover {
-    text-shadow: none;
-    transition: none;
-  }
-
   &, .csd & {
     &.touch-selection,
     &.magnifier {
@@ -1769,6 +1763,8 @@ popover.background {
     &.osd { @extend %osd; }
   }
 
+  separator { margin: 3px; }
+
   list separator { margin: 0px; }
 }
 
index f0b9cd8a0c4b8f7b21fedd0607dfe4302c7aa114..00c435609ad468427e384ed99a9063727e36151f 100644 (file)
@@ -1223,7 +1223,7 @@ modelbutton.flat,
   outline-offset: -2px; }
   modelbutton.flat:hover,
   .menuitem.button.flat:hover {
-    background-color: #4b5150; }
+    background-color: rgba(238, 238, 236, 0.05); }
   modelbutton.flat check:last-child,
   modelbutton.flat radio:last-child,
   .menuitem.button.flat check:last-child,
@@ -2240,19 +2240,10 @@ popover.background {
   popover.background > .location-bar {
     border-style: none;
     background-color: transparent; }
-  popover.background button.flat, popover.background button.sidebar-button, popover.background headerbar button.titlebutton, headerbar popover.background button.titlebutton,
-  popover.background .titlebar button.titlebutton,
-  .titlebar popover.background button.titlebutton,
-  popover.background button.flat:hover,
-  popover.background button.sidebar-button:hover,
-  popover.background headerbar button.titlebutton:hover,
-  headerbar popover.background button.titlebutton:hover,
-  popover.background .titlebar button.titlebutton:hover,
-  .titlebar popover.background button.titlebutton:hover {
-    text-shadow: none;
-    transition: none; }
   popover.background.touch-selection, popover.background.magnifier, .csd popover.background.touch-selection, .csd popover.background.magnifier {
     border: 1px solid rgba(255, 255, 255, 0.1); }
+  popover.background separator {
+    margin: 3px; }
   popover.background list separator {
     margin: 0px; }
 
index 55796bd0d2cab40dab562b35b44ed7ae56e147cf..64b4ba538aad74e2ff978cfbf7c2df5a1934a6ca 100644 (file)
@@ -1223,7 +1223,7 @@ modelbutton.flat,
   outline-offset: -2px; }
   modelbutton.flat:hover,
   .menuitem.button.flat:hover {
-    background-color: #d5d6d5; }
+    background-color: rgba(46, 52, 54, 0.05); }
   modelbutton.flat check:last-child,
   modelbutton.flat radio:last-child,
   .menuitem.button.flat check:last-child,
@@ -2250,19 +2250,10 @@ popover.background {
   popover.background > .location-bar {
     border-style: none;
     background-color: transparent; }
-  popover.background button.flat, popover.background button.sidebar-button, popover.background headerbar button.titlebutton, headerbar popover.background button.titlebutton,
-  popover.background .titlebar button.titlebutton,
-  .titlebar popover.background button.titlebutton,
-  popover.background button.flat:hover,
-  popover.background button.sidebar-button:hover,
-  popover.background headerbar button.titlebutton:hover,
-  headerbar popover.background button.titlebutton:hover,
-  popover.background .titlebar button.titlebutton:hover,
-  .titlebar popover.background button.titlebutton:hover {
-    text-shadow: none;
-    transition: none; }
   popover.background.touch-selection, popover.background.magnifier, .csd popover.background.touch-selection, .csd popover.background.magnifier {
     border: 1px solid rgba(255, 255, 255, 0.1); }
+  popover.background separator {
+    margin: 3px; }
   popover.background list separator {
     margin: 0px; }